package com.bdqn.service;


import bean.User;
import org.springframework.boot.configurationprocessor.json.JSONException;
import java.util.Map;

public interface UserSevice {
    Map<Object,Object> find(String moblie, String password) throws JSONException;

    User select_find(String phone);

    User Login_find(String moblie, String password);

    //校验用户是否被注册
    Integer phone(String phone);

    //校验是否有该邀请码
    public String  Invitationcode(String Invitation);

    //检查有没有该邮箱
    Integer Email(String email);

    //校验手机号是否有该邮箱
    public String QueryEmail(String email);

    //注册
    public void register(String moblie ,String password,String Code,String email);

    //忘记密码（修改密码）
    Integer forget(String password,String phone);

}
